package pers.itqiqi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;
import pers.itqiqi.dao.UserDao;
import pers.itqiqi.pojo.User;
import pers.itqiqi.service.UserService;

import java.util.List;

/**
 * @author kevin_琪琪
 * @version 1.0
 * @description User业务实现类
 * @date 2022-07-07 10:27
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;


    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }

    @Override
    public void updateUser(User user) {
        userDao.updateUser(user);
    }

    @Override
    public void deleteUser(String id) {
        userDao.deleteUser(id);
    }

    @Override
    public Integer numberOfQueryRecords() {
        return userDao.numberOfQueryRecords();
    }

    @Override
    public User queryUser(String id) {
        return userDao.queryUser(id);
    }

    @Override
    public List<User> queryUserAll() {
        return userDao.queryUserAll();
    }

    @Override
    public void batchAdd(List<Object[]> user) {
        userDao.batchAdd(user);
    }

    @Override
    public void batchUpdate(List<Object[]> user) {
        userDao.batchUpdate(user);
    }

    @Override
    public void batchDelete(List<Object[]> id) {
        userDao.batchDelete(id);
    }
}
